<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>...this.props</title>
		<script src="//www.w3cschool.cn/statics/assets/react/react.min.js"></script>
		<script src="//www.w3cschool.cn/statics/assets/react/react-dom.min.js"></script>
		<script src="//www.w3cschool.cn/statics/assets/react/babel.min.js"></script>
	</head>
	<body>
		<div id="hello-example"></div>
		<script type="text/babel">
			class HelloMessage extends React.Component {
				render() {
					return (
						<a {...this.props}>
							Hello {this.props.name}
						</a>
					);
				}
			}
			ReactDOM.render(
				<HelloMessage href="https://baidu.com" name="Taylor" />,
				document.getElementById('hello-example')
			);
    </script>
	</body>
</html>
